package com.proxy.dynamic_proxy_cglib;

/**
 * 项目名称: java_algorithm
 * @ClassName DynamicProxyTest
 * @Description
 * @Author huipanxing huipanxing@chinasofti.com   @Date 2022/5/30 14:42
 */
public class DynamicProxyCglibTest {

    public static void main(String[] args) {
        Teacher teacher=new Teacher();
        CglibDynamicProxy cglibDynamicProxy=new CglibDynamicProxy(teacher);
        Teacher proxy = (Teacher) cglibDynamicProxy.getProxy();
        proxy.teach();
    }
}
